//
//  EssenceCell.m
//  Otaku
//
//  Created by lanou3g on 16/5/9.
//  Copyright © 2016年 Liuwx. All rights reserved.
//

#import "EssenceCell.h"

@interface EssenceCell ()
//图片
@property (weak, nonatomic) IBOutlet UIImageView *pictureImageView;
//内容
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
//时间日期
@property (weak, nonatomic) IBOutlet UILabel *dateTimeLabel;

@end

@implementation EssenceCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews {
    [self.pictureImageView sd_setImageWithURL:[NSURL URLWithString:self.model.image_url]];
    self.contentLabel.text = self.model.title;
    self.dateTimeLabel.text = self.model.datetime;
    
}

- (void)updateToDaySkinMode {
    self.backgroundColor = [UIColor whiteColor];
    self.contentLabel.textColor = [UIColor blackColor];
}

- (void)updateToNightSkinMode {
    self.backgroundColor = [UIColor blackColor];
    self.contentLabel.textColor = [UIColor grayColor];
}

@end
